package com.itheima.service;

import com.itheima.entity.Result;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    User findByUsername(String username);

    PageResult findPage(QueryPageBean queryPageBean);

    User findById(Integer userId);

    void edit(User user, Integer[] userIds);
    void userAdd(User user, Integer[] roleIds);
    void delete(Integer id);

    List<Integer> findrolesByUserId(Integer id);

    List<User> findAllHeathUser();

}
